import pprint

# 类型
type1 = type(1)
print(type1)

# 列出对象的所有属性及方法
dir1 = dir(1)
print(dir1)

animals = 'cat,dog,horse'
animals2 = animals.split(',')
print(animals2)

data = (
    "this is a string", [1, 2, 3, 4], ("more tuples", 1.0, 2.3, 4.5), "this is yet another string"
)

# 输出格式的对象字符串
pprint.pprint(data)
